﻿using myns1;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


#region 命名空间1
namespace myns1
{
    class MyClass
    {

        public string Name { get; set; }

        public string Description { get; set; }

        public MyClass() { }

        public void Info() 
        { 
        
            Console.WriteLine(Name + " " + Description);
        }
    }


}
#endregion



#region 命名空间2
namespace myns2
{

}
#endregion


namespace ConsoleApp2
{
    class Program
    {

        #region 强制类型转换
        static void TestConvent()
        {
            int int32 = Convert.ToInt32("32");
            Console.WriteLine(int32);

            double d = Convert.ToDouble("45.6");
            Console.WriteLine(d);
        }

        #endregion

        static void Main(string[] args)
        {
            //TestConvent();


            //MyClass mc = new MyClass();
            //mc.Name = "myclass";
            //mc.Description = "myns1.MyClass";
            //mc.Info();

            //myns2.MyClass2 mc2 = new myns2.MyClass2();
            //mc2.Name = "myclass2";
            //mc2.Description = "myns2.MyClass2";
            //mc2.Info();

            string reqStr = "MeixinTestFormController/attentionEquipList";
            int index = reqStr.IndexOf("/");
            int len = reqStr.Length; 
            string funcName = reqStr.Substring(index+1, len-index-1);
            Console.WriteLine(funcName);

            Console.ReadKey();
        }
    }
}
